package com.fmatos.service.album.downloader.rss;

import com.fmatos.service.album.downloader.ImageDownloader;
import com.fmatos.service.album.downloader.info.AlbumInfo;


public class RssAlbumInfo extends AlbumInfo {

	private static final String HEROKU_CUSTOM_RSS_PREFIX = "/album/customrss?url=";
	public static final String HEROKU_HOST = "http://amazing-wallpapers.herokuapp.com";
	
	private String rssUrl;
	
	public RssAlbumInfo(String niceName, String url) {
		super(AbstractRssDownloader.getAlbumName(url),niceName,url);
		rssUrl = url;
	}

	public String getUrl() {
		return HEROKU_CUSTOM_RSS_PREFIX + super.getUrl();
	}

	@Override
	public ImageDownloader getDownloader() {
		return new CustomRssDownloader(rssUrl);
	}

}
